package VN.EDU.IMIC.PROJECTLEADER.NGUYENVANDOAN.OOP.MVC_DEMO;

public class Models {    
    public boolean KTraSuTonTaiTK(UserEntity objUser){        
        //C1: Sử dụng If...Else
        /*if(objUser.getUserName().equals("abc")
                && objUser.getPassWord().equals("123")){
            return true;
        }
        return false;*/
        
        //C2: Sử dụng toán tử 3 ngôi trong java
        return objUser.getUserName().equals("abc")
                && objUser.getPassWord().equals("123") 
                                ? true : false;       
    }    
    public boolean KtraTTKichHoatTK(UserEntity objUser){
        return true;
    }    
    public boolean KtraSoDuTK(UserEntity objUser){
        return true;
    }
    public boolean KtraTTLockUnlockTK(UserEntity objUser){
        return true;
    }       
}
